package com.tech.platform.cms.common.model;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class PageResult<T> {

    private int code;

    private String msg;

    private long total;

    private T data;

    public PageResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public PageResult(int code, String msg, int total, T data) {
        this.code = code;
        this.msg = msg;
        this.total = total;
        this.data = data;
    }
}
